package com.ruoyi.manage.mapper;

import com.ruoyi.common.core.cg.pojo.*;
import com.ruoyi.common.core.cg.result.Queryparam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 马景昌
 * @create 2025/03/06
 * @description
 */
@Mapper
public interface StoreMapper {
    String selectStoreName(Integer oid);

    Store selectid(Integer oid);

    boolean updatename(@Param("id") Integer id, @Param("name1") String name1);

    Store selectBygid(Integer gid);

    Integer selectStoreCount(Integer id);


    List<Store> findAll(Queryparam queryparam);
    LeaderStore LEADER_STORES(Integer id);
    Leader selectleader(Integer id);
    List<Order_store> selectorderstore(Integer id);
    List<UserOrder> selectorder(Integer id);
    Integer selectuser(Integer id);
    Integer selectgroup(Integer id);
    Integer orderNum(Integer id);


    Store byName(Integer name);
    Leader LEADER(Integer id);

    List<Classification> Selectclass();
    String Selectclasss(Integer id);

    Leader selectLeader(Integer id);

    boolean updateStore(Store store);
    boolean updateLeader(Leader leader);

    String selectLname(Integer id);

    //拼团点
    Community selectCommunity(Integer id);

    //修改拼团点
    boolean sommunityUpdate(Community community);

    BigDecimal sumPrice(Integer id);
}
